<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>内容管理 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/dtree.css?11">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/font/dtreefont.css">
<script src="//cdn.hdsyscms.com/jq/jquery-1.11.1.min.js"></script>
<script src="//cdn.hdsyscms.com/lightbox/lightbox.js?456"></script>
<link href="//cdn.hdsyscms.com/lightbox/lightbox.css" rel="stylesheet">
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-header">内容管理</div>
<div class="layui-card-body">
<form class="layui-form" id="soso-form" onsubmit="return false;" action="">
<div class="layui-form layui-soso1">
<div class="layui-form-item">
<label class="layui-form-label">栏目</label>
<div class="layui-input-inline" style="width:300px!important">
<ul id="seltree"></ul>
</div>
<div class="layui-input-inline" style="width:100px!important">
<select name="soso_id" id="soso_id" lay-filter="soso_id">
<option value="0">综合搜索</option>
<option value="1">标题</option>
<option value="2">ID</option>
<option value="3">链接</option>
<option value="4">内容</option>
<option value="5">SEO关键词</option>
<option value="6">SEO描述</option>
<option value="7">自定属性</option>
</select>
</div>
<div class="layui-input-inline" style="width:250px!important">
<input onkeydown="if(event.keyCode==13){  document.getElementById('binsoso').click(); }" type="text" class="layui-input" name="soso" id="soso" placeholder="请输入搜索内容">
</div>
<label class="layui-form-label">状态</label>
<div class="layui-input-inline" style="width:150px!important">
<select name="sdates" lay-search id="sdates" lay-filter="sdates">
<option value="0">全部</option>
<option value="1">可见</option>
<option value="2">隐藏</option>
</select>
</div>
<label class="layui-form-label">推荐</label>
<div class="layui-input-inline" style="width:150px!important">
<select name="hot" lay-search id="hot" lay-filter="hot">
<option value="0">全部</option>
<option value="1">推荐内容</option>
</select>
</div>
<label class="layui-form-label"></label>
<button id="binsoso" lay-submit lay-filter="LAY-user-front-search" class="layui-btn layui-btn-sm1 layuiadmin-btn-useradmin"><i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>搜索</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-body">
<table lay-even lay-skin="nob" lay-size="lg" class="layui-hide" id="test-table-toolbar" lay-filter="test-table-toolbar"></table>
<script type="text/html" id="test-table-toolbar-toolbarDemo"><div class="layui-btn-container"><button class="layui-btn layui-btn-sm" lay-event="act_1">设置推荐</button><button class="layui-btn layui-btn-sm" lay-event="act_2">取消推荐</button><button class="layui-btn layui-btn-sm" lay-event="act_3">设置隐藏</button><button class="layui-btn layui-btn-sm" lay-event="act_4">设置显示</button><button class="layui-btn layui-btn-sm" lay-event="act_5">删除选择</button></div></script>
<script type="text/html" id="infokey"><div class="shopinfo"><div class="regs"><div class="describes"><span class="layui-badge layui-badge-rim">编号 {{d.id}}</span></div><div class="describes"><span class="layui-badge layui-badge-rim">时间 {{d.add_time}}</span></div><div class="describes"><span class="layui-badge layui-badge-rim">阅读 {{d.browse}}</span>{{# if(d.hot!=0){ }}<span class="layui-badge layui-badge-rim">已推荐</span>{{# } }}</div></div></div></script>
<script type="text/html" id="table"><div class="shopinfo"><div class="imgs">{{# if(d.graph !=''){ }}<a class="example-image-link layui-table-link" href="javascript:void(0);" data-url="{{ d.graph }}" data-title="" data-lightbox="example-set"><img while=80 hight=80 src="{{ d.graph }}"></a>{{# } else { }}<img class="templetimg example-image-link" src="//cdn.hdsyscms.com/hdsyscms/statics/thumbnail.svg" lay-src="{{ d.graph }}">{{# } }}</div><div class="regs"><div class="describes"><a title="{{d.name}}" href="index.php?m=manage&c=Content&a=edit&id={{d.id}}" class="title_a">{{d.name}}</a></div><div title="{{d.ename}}" style=" font-size: 12px;" class="describes">{{d.ename}}</div><div class="describes">{{# layui.each(d.pid_list, function(index, item){ }}<span class="layui-badge layui-badge-orange pid_list">{{ item.name }}</span>{{# }); }}</div></div></div></script>
<script type="text/html" id="test-table-toolbar-barDemo"><a class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon">&#xe642;</i>编辑</a><a class="layui-btn layui-btn-xs" lay-event="more">更多 <i class="layui-icon layui-icon-down"></i></a></script>
<script type="text/html" id="titleTpl">{{# if(d.graph !=''){ }}<a class="example-image-link" href="javascript:void(0);" data-url="{{ d.graph }}" data-title="" data-lightbox="example-set"><img class="templetimg example-image-link" src="//cdn.hdsyscms.com/hdsyscms/statics/thumbnail.svg" lay-src="{{ d.graph }}"></a>{{# } else { }}<a class="example-image-link" href="javascript:void(0);" data-url="{{ d.graph }}" data-title="" data-lightbox="example-set"><img class="templetimg example-image-link" src="//cdn.hdsyscms.com/hdsyscms/statics/thumbnail.svg" lay-src="{{ d.graph }}"></a>{{# } }}</script>
</div>
</div>
</div>
</div>
</div>
<?php adminechohtnl(); ?>
<div id="foot">Copyright © 2019-2023 <a href="https://www.HDSysCms.Com?pro" target="_blank">HDSysCms <?php echo HDSYS_VERSION; ?></a> <br>
All Rights Reserved </div>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>var DemoTree='';var bsphp_all='';layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).extend({index: 'lib/index'}).use(['jquery', 'index', 'dtree', 'form', 'table', 'flow', 'layer'], function() {var admin=layui.admin,$=layui.$,dtree=layui.dtree,form=layui.form,dropdown=layui.dropdown,table=layui.table;var flow=layui.flow;flow.lazyimg();var DemoTree=dtree.renderSelect({elem: "#seltree",url: "index.php?m=manage&c=Category&a=list_ajax",checkbar: true,checkbarType: "self",selectInitVal: "001001,001003",done: function(res, $ul, first) {if (first) {dtree.dataInit(DemoTree, "<?php echo (int)set_get('listid'); ?>");$('#seltree_select_input_id').attr('placeholder', '全部栏目显示');form.render();}},checkbar: true,checkbarType: "self",line: true,skin: "zdy",initLevel: 5,none: "暂时没有栏目，请先去添加栏目",ficon: ["-1", "-1", "-1"],icon: ["-1"]});dtree.on("node('seltree')", function(obj) {DemoTree.clickNodeCheckbar(obj.param.nodeId);});dtree.on("chooseDone('seltree')", function(obj) {let arr=dtree.getCheckbarNodesParam(DemoTree);});$("body").on("click", function(event) {$("div[dtree-id][dtree-select]").removeClass("layui-form-selected");$("div[dtree-id][dtree-card]").removeClass("dtree-select-show layui-anim layui-anim-upbit");});table.on('toolbar(test-table-toolbar)', function(obj) {var checkStatus=table.checkStatus(obj.config.id);bsphp_all='';var data=checkStatus.data;for (var key in data) {bsphp_all=bsphp_all + data[key]['id'] + ',';}bsphp_all=bsphp_all + '0';switch (obj.event) {case 'act_1':$.ajax({type: "post",url: 'index.php?m=manage&c=Content&a=table_set_ajax',data: 'josn=ok&all=' + bsphp_all + '&type=1',dataType: "json",success: function(ret) {layer.alert(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}});break;case 'act_2':$.ajax({type: "post",url: 'index.php?m=manage&c=Content&a=table_set_ajax',data: 'josn=ok&all=' + bsphp_all + '&type=2',dataType: "json",success: function(ret) {layer.alert(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}});break;case 'act_3':$.ajax({type: "post",url: 'index.php?m=manage&c=Content&a=table_set_ajax',data: 'josn=ok&all=' + bsphp_all + '&type=3',dataType: "json",success: function(ret) {layer.alert(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}});break;case 'act_4':$.ajax({type: "post",url: 'index.php?m=manage&c=Content&a=table_set_ajax',data: 'josn=ok&all=' + bsphp_all + '&type=4',dataType: "json",success: function(ret) {layer.alert(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}});break;case 'act_5':layer.confirm('你确定删除吗？', {btn: ['确定', '取消']}, function() {$.ajax({type: "post",url: 'index.php?m=manage&c=Content&a=table_set_ajax',data: 'josn=ok&all=' + bsphp_all + '&type=5',dataType: "json",success: function(ret) {layer.alert(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}});}, function() {});break;};});table.render({elem: '#test-table-toolbar',url: 'index.php?m=<?php echo set_get('m'); ?>&c=<?php echo set_get('c'); ?>&a=<?php echo set_get('a'); ?>_ajax&json=get&soso_ok=1',toolbar: '#test-table-toolbar-toolbarDemo',title: '产品列表',groups: 1  ,first: false  ,last: false  ,cols: [[{field: 'id',type: 'checkbox',width: 40,fixed: 'left'},{field: 'sort',width: 230,templet: '#infokey'},{field: 'name',maxwidth: 200,templet: '#table'}, {fixed: 'right',title: '操作',toolbar: '#test-table-toolbar-barDemo',width: 160}]],page: true,skin: 'line',done: function(res, curr, count) {flow.lazyimg({});}});table.on('edit(test-table-toolbar)', function(obj) {var value=obj.value  ,data=obj.data  ,field=obj.field;$.ajax({type: "post",url: 'index.php?m=manage&c=<?php echo set_get('c') ?>&a=edit_table_ajax',data: 'id=' + data.id + "&field=" + value,dataType: "json",success: function(ret) {layer.msg(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}});});table.on('tool(test-table-toolbar)', function(obj) {var data=obj.data;var that=this;if (obj.event==='del') {layer.confirm('你确定删除吗？', {btn: ['确定', '取消']}, function() {$.ajax({type: "post",url: 'index.php?m=manage&c=<?php echo set_get('c') ?>&a=del_ajax',data: 'id=' + data.id,dataType: "json",success: function(ret) {layer.msg(ret.msg);table.reload('test-table-toolbar', {page: {curr: 1}});},error: function(e, t) {layer.alert('接口请求返还异常');}})}, function() {});} else if (obj.event==='edit') {location.href='index.php?m=manage&c=<?php echo set_get('c') ?>&a=edit&id=' + data.id;} else if (obj.event==='more') {dropdown.render({elem: that,show: true,data: [{title: '浏览器打开',id: 'open',val: data.id,}, {title: '删除',id: 'del',val: data.id,}],click: function(data, othis) {if (data.id==='del') {layer.confirm('真的删除么', function(index) {$.ajax({type: "post",url: 'index.php?m=manage&c=<?php echo set_get('c') ?>&a=del_ajax',data: 'id=' + obj.data.id,dataType: "json",success: function(ret) {obj.del();layer.msg(ret.msg);},error: function(e, t) {layer.alert('接口请求返还异常');}});layer.close(index);});} else if (data.id==='open') {openpage(obj.data.static_url);} else {layer.msg('得到表格下拉菜单 id：' + data.id);}},align: 'right',style: 'box-shadow: 1px 1px 10px rgb(0 0 0 / 12%);'});}});window.openpage=function(url) {var data="<?php if (bs_lib::get_configs_value('seo', 'switch')==1) {$param_tmp=getsysurl() .   '" + url + ".html';$param_tmp=call_my_str_replace('/index.html', '', $param_tmp);echo $param_tmp;} else {$param_tmp=getsysurl() . 'index.php/' .   '" + url + ".html';$param_tmp=call_my_str_replace('/index.html', '', $param_tmp);echo $param_tmp;}  ?>";window.open(data);};form.on('submit(LAY-user-front-search)', function(data) {table.reload('test-table-toolbar', {page: {curr: 1},where: data.field});});$('.bin-add').on('click', function() {location.href="index.php?m=manage&c=<?php echo set_get('c') ?>&a=add";});});</script>
<style>.templetimg {width: 60px;height: 60px;object-fit: contain;}td .layui-table-cell {height: 80px;line-height: 80px;}.layui-table-page {position: relative;width: 100%;padding: 7px 7px 0;height: 41px;font-size: 12px;white-space: nowrap;position: fixed;bottom: 0px;left: 0;right: 0;width: 100%;background-color: #fff;z-index: 800;}</style>
<style>.dtree-zdy-item-this {background-color: #deeefd00 !important;}.dtree-zdy-item:hover {background-color: #deeefd !important;}.dtree-zdy-item cite {font-size: 13px !important;}.dtree-zdy-item:hover cite {color: #1b84ed !important;}.dtree-zdy-dtreefont {font-size: 18px !important;}.dtree-zdy-ficon {color: #2F4056 !important;}.dtree-zdy-icon {color: #2F4056 !important;}.dtree-zdy-checkbox:hover {color: #2163cb !important;}.dtree-zdy-choose {color: #2163cb !important;}.dtree-nav-first-line,.dtree-nav-line,.dtree-nav-last-line {line-height: 40px;}.layui-form-label {width: auto;}.shopinfo {display: flex;}.shopinfo .regs {padding-left: 10px;display: flex;flex-direction: column;justify-content: flex-start;align-items: center;line-height: 20px;min-width: 141px;}.shopinfo .regs .describes {text-align: left;width: 100%;padding-bottom: 3px;}.shopinfo .regs .describes a {font-size: 14px;font-weight: 500;color: rgb(38, 138, 238);}.shopinfo .regs .describes a:hover {color: #3796f6;}.shopinfo .regs .title {font-weight: 600;text-align: left;width: 100%;}.shopinfo .regs .title a {width: 100%;}.shopinfo .regspadding0 {padding-left: 0px;}.shopinfo .imgs {width: 80px;height: 80px;}.shopinfo .imgs img {width: 80px;height: 80px;}.texts {white-space: break-spaces;overflow: revert;text-overflow: unset;line-height: 23px;}.texts-sm {white-space: break-spaces;overflow: revert;text-overflow: unset;line-height: 23px;font-size: 12px;}.pid_list {position: relative;display: inline-block;padding: 0 6px;padding-bottom: 0px;font-size: 12px;text-align: center;background-color: #fff;color: #686868;border-radius: 2px;border: 1px solid #686868;line-height: 16px;}.layui-form-item .layui-input-inline {padding-bottom: 15px;}</style>
</body>
</html>